package x.ovo.wechat.bot.plugin;

import org.dromara.hutool.core.io.file.FileUtil;
import x.ovo.wechat.bot.core.Constant;
import x.ovo.wechat.bot.core.command.CommandExcutor;
import x.ovo.wechat.bot.core.event.EventListener;
import x.ovo.wechat.bot.core.plugin.Plugin;

import java.io.File;

public class AiPlugin extends Plugin {
    @Override
    public void onLoad() {
        File file = FileUtil.file(this.getDataDir(), Constant.Files.CONFIG_FILE_NAME);
        if (!file.exists()) {
            this.saveDefaultConfig();
        }
    }

    @Override
    public EventListener<?, ?> getEventListener() {
        return new AiListener(this);
    }

    @Override
    public CommandExcutor getCommandExcutor() {
        return null;
    }
}
